home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI O2 Out of Box Experience
/
SGI O2 Out of Box Experience.iso
/
jungleIsland
/
critters
/
butterfly.wrl
next >
Wrap
Text File
|
1996-11-14
|
5KB
|
240 lines
#VRML Draft #2 V2.0 utf8 CosmoCreate3D V1.0
Group {
children [
# Inline { url "bbox.wrl" }
# ,
DEF BUTTERFLY Group {
children [
Group {
children [
Transform {
children [
DEF VIS-SENSOR_0 VisibilitySensor {
center 42 4 0
size 100 30 100
enabled TRUE
}
,
DEF BODY_1 Transform {
children [
DEF WING1_2 Transform {
children Shape {
appearance Appearance {
material DEF _3 Material {
ambientIntensity 0
diffuseColor 0 0 0
specularColor 0.637764 0.37654 0
emissiveColor 0.921769 0.544218 0
shininess 0.0540541
transparency 0
}
texture NULL
textureTransform NULL
}
geometry IndexedFaceSet {
coord Coordinate {
point [ 0 0 0,
2 0 0.5,
0.25 0 -2 ]
}
coordIndex [ 0, 1, 2, -1, 2, 1, 0, -1 ]
colorIndex [ ]
}
}
rotation 0 0 1 0.2
center 0 0 0
}
,
DEF WING2_4 Transform {
children Shape {
appearance Appearance {
material USE _3
texture NULL
textureTransform NULL
}
geometry IndexedFaceSet {
coord Coordinate {
point [ 0 0 0,
-2 0 0.5,
-0.25 0 -2 ]
}
coordIndex [ 0, 1, 2, -1, 2, 1, 0, -1 ]
colorIndex [ ]
}
}
rotation 0 0 -1 0.2
center 0 0 0
}
]
translation 84.832 0 -15.2
rotation 0 1 0 3.54362
scale 0.999996 0.999999 0.999996
}
]
}
,
Group {
children [
DEF wingflap CoKeyframeAnimation {
children DEF WING-TIMER_5 TimeSensor {
cycleInterval 0.5
loop TRUE
startTime 0
}
duration 0.5
framesPerSecond 10
}
,
DEF WING1-FLAP_6 CoHermiteOrientationInterpolator {
keys [ 0, 0.5, 1 ]
keyTypes [ HERMITE,
HERMITE,
HERMITE ]
numFrames 5
values [ 0 0 1 0.0999996,
0 0 1 1.4,
0 0 1 0.0999996 ]
}
,
DEF WING2-FLAP_7 CoHermiteOrientationInterpolator {
keys [ 0, 0.5, 1 ]
keyTypes [ HERMITE,
HERMITE,
HERMITE ]
numFrames 5
values [ 0 0 -1 0.0999996,
0 0 -1 1.4,
0 0 -1 0.0999996 ]
}
]
}
,
Group {
children [
DEF pathanim CoKeyframeAnimation {
children DEF PATH-TIMER_8 TimeSensor {
cycleInterval 10
loop TRUE
startTime 0
}
duration 10
framesPerSecond 10
}
,
DEF PATH-TRANS_9 CoHermitePositionInterpolator {
keys [ 0, 0.1, 0.2, 0.3,
0.4, 0.5, 0.6, 0.7,
0.8, 0.85, 0.9, 1 ]
keyTypes [ HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE ]
numFrames 100
values [ 0 0 0,
24 3 48,
48 12 32,
72 15 40,
88 8 16,
88 0 -4,
76 -7 -32,
48 -8 -48,
31.9213 -10 -24.1629,
12.3622 -6 -29.1421,
-3.62542 -2 -23.472,
0 0 0 ]
}
,
DEF PATH-ORIENT_10 CoHermiteOrientationInterpolator {
keys [ 0, 0.1, 0.2, 0.3,
0.4, 0.5, 0.6, 0.7,
0.8, 0.85, 0.9, 1 ]
keyTypes [ HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE,
HERMITE ]
numFrames 100
values [ 0 0 1 0,
0 1 0 1.5,
0 1 0 2,
0 1 0 1.3,
0 -1 0 3,
0 1 0 3.5,
0 1 0 3.7,
0 -1 0 1.6,
0 -1 0 1.24177,
0 -1 0 1.4014,
0 -1 0 0.50753,
0 0 1 0 ]
}
]
}
]
}
,
DEF VP1 Viewpoint {
position 40 130 10
orientation -1 0 0 1.5
fieldOfView 0.785398
description "viewpoint1"
}
,
DEF VP2 Viewpoint {
position -20.8117 -2.44897 -39.3458
orientation 0 1 0 3.14159
description "viewpoint2"
}
,
DEF VP3 Viewpoint {
position -7.18273 -41.4078 16.0542
orientation 0.977017 -0.207617 0.048304 1.203
fieldOfView 0.785398
description "viewpoint3"
}
]
}
]
}
ROUTE WING1-FLAP_6.value_changed TO WING1_2.set_rotation
ROUTE WING2-FLAP_7.value_changed TO WING2_4.set_rotation
ROUTE PATH-TRANS_9.value_changed TO BODY_1.set_translation
ROUTE PATH-ORIENT_10.value_changed TO BODY_1.set_rotation
ROUTE VIS-SENSOR_0.enterTime TO WING-TIMER_5.set_startTime
ROUTE WING-TIMER_5.fraction TO WING1-FLAP_6.set_fraction
ROUTE WING-TIMER_5.fraction TO WING2-FLAP_7.set_fraction
ROUTE VIS-SENSOR_0.enterTime TO PATH-TIMER_8.set_startTime
ROUTE PATH-TIMER_8.fraction TO PATH-TRANS_9.set_fraction
ROUTE PATH-TIMER_8.fraction TO PATH-ORIENT_10.set_fraction